package com.framework.repository;

import com.framework.entity.ChunkFile;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;
import java.util.UUID;

/**
 * @Description: ChunkFile表实现类
 * @Author: JamesYao
 * @DateTime: 2024/1/16 23:52
 */
public interface ChunkFileRepository extends JpaRepository<ChunkFile, UUID> {
    List<ChunkFile> findByPid(UUID pid);
    List<ChunkFile> findByFileId(String fileId);
    void deleteChunksByFileId(String fileId);
    List<ChunkFile> findByFileIdOrderByNumAsc(String fileId);
}
